﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: PaymentLogEntity.cs
// 修改时间：2020-9-8 10:40:07
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：PaymentLog 的实体类.
	/// </summary>
	[Table("PaymentLog")]
	public partial class PaymentLogEntity
	{
		#region Properties
		private int? _paymentLogID = 0;
		/// <summary>
		/// 支付ID(主键)
		/// </summary>
		[Column("PaymentLogID",TypeName="int")]
		[Key]
		public int? PaymentLogID
		{
			get {return _paymentLogID;}
			set {_paymentLogID = value;}
		}
		
		private System.String _userName = string.Empty;
		/// <summary>
		/// 会员用户名
		/// </summary>
		[Column("UserName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserName
		{
			get {return _userName;}
			set {_userName = value;}
		}
		
		private int? _orderID = 0;
		/// <summary>
		/// 订单ID
		/// </summary>
		[Column("OrderID",TypeName="int")]
		public int? OrderID
		{
			get {return _orderID;}
			set {_orderID = value;}
		}
		
		private System.String _paymentNum = string.Empty;
		/// <summary>
		/// 支付序号
		/// </summary>
		[Column("PaymentNum",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PaymentNum
		{
			get {return _paymentNum;}
			set {_paymentNum = value;}
		}
		
		private int? _platformID = 0;
		/// <summary>
		/// 支付平台
		/// </summary>
		[Column("PlatformID",TypeName="int")]
		public int? PlatformID
		{
			get {return _platformID;}
			set {_platformID = value;}
		}
		
		private decimal? _moneyPay = 0;
		/// <summary>
		/// 支付金额
		/// </summary>
		[Column("MoneyPay",TypeName="money")]
		public decimal? MoneyPay
		{
			get {return _moneyPay;}
			set {_moneyPay = value;}
		}
		
		private decimal? _moneyTrue = 0;
		/// <summary>
		/// 实际支付金额
		/// </summary>
		[Column("MoneyTrue",TypeName="money")]
		public decimal? MoneyTrue
		{
			get {return _moneyTrue;}
			set {_moneyTrue = value;}
		}
		
		private DateTime? _payTime = null;
		/// <summary>
		/// 交易时间
		/// </summary>
		[Column("PayTime",TypeName="datetime")]
		public DateTime? PayTime
		{
			get {return _payTime;}
			set {_payTime = value;}
		}
		
		private DateTime? _successTime = null;
		/// <summary>
		/// 交易成功时间
		/// </summary>
		[Column("SuccessTime",TypeName="datetime")]
		public DateTime? SuccessTime
		{
			get {return _successTime;}
			set {_successTime = value;}
		}
		
		private int? _status = 0;
		/// <summary>
		/// 支付状态(1：未提交；2：已提交；3：已成功；4：已失败)
		/// </summary>
		[Column("Status",TypeName="int")]
		public int? Status
		{
			get {return _status;}
			set {_status = value;}
		}
		
		private System.String _platformInfo = string.Empty;
		/// <summary>
		/// 银行信息
		/// </summary>
		[Column("PlatformInfo",TypeName="nvarchar(200)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PlatformInfo
		{
			get {return _platformInfo;}
			set {_platformInfo = value;}
		}
		
		private System.String _remark = string.Empty;
		/// <summary>
		/// 备注
		/// </summary>
		[Column("Remark",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Remark
		{
			get {return _remark;}
			set {_remark = value;}
		}
		
		private int? _exp = 0;
		/// <summary>
		/// 购买积分数
		/// </summary>
		[Column("Exp",TypeName="int")]
		public int? Exp
		{
			get {return _exp;}
			set {_exp = value;}
		}
		
		private int? _point = 0;
		/// <summary>
		/// 购买点券数
		/// </summary>
		[Column("Point",TypeName="int")]
		public int? Point
		{
			get {return _point;}
			set {_point = value;}
		}
		
		private int? _validDate = 0;
		/// <summary>
		/// 购买有效期天数
		/// </summary>
		[Column("ValidDate",TypeName="int")]
		public int? ValidDate
		{
			get {return _validDate;}
			set {_validDate = value;}
		}
		
		private int? _groupID = 0;
		/// <summary>
		/// 要升级到的会员组ID
		/// </summary>
		[Column("GroupID",TypeName="int")]
		public int? GroupID
		{
			get {return _groupID;}
			set {_groupID = value;}
		}
		
		#endregion
	}
}
